package com.boot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author Chunsheng.Zhang
 * @date 2021/1/7 11:36
 * @description : TODO
 */
@SpringBootApplication
@EnableAsync  //打开异步任务开关
public class AsyncTaskApplication {

    public static void main(String[] args) {
        SpringApplication.run(AsyncTaskApplication.class, args);
    }
}
